//
//  MainTableViewController.m
//  Tools
//
//  Created by han on 2019/1/4.
//  Copyright © 2019 han. All rights reserved.
//

#import "MainTableViewController.h"
#import "DebugTools.h"
#import "PrivacyPermissionManager.h"

@interface MainTableViewController ()
@property (nonatomic, strong) NSArray *dataSource;

@end

@implementation MainTableViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.dataSource = @[@"MutiScroll",@"nestTable",@"RefreshTable"];
    [FpsShow showFpsInWindow];
  
}

#pragma mark - Table view data source

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
    return 1;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    return self.dataSource.count;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"MainCellIdentifier" forIndexPath:indexPath];
    cell.textLabel.text = self.dataSource[indexPath.row];
    return cell;
}
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    [self performSegueWithIdentifier:self.dataSource[indexPath.row] sender:nil];
}

#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
    
    // 用来传值
    if ([segue.identifier isEqualToString:@"identifier"]) {
//        GCDViewController *des = [segue destinationViewController];
        
    }
    
}


@end
